package com.example.demo.mapper;

import com.example.demo.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {
    List<Student> selectAll();
    List<Student> selectByName(String keyword);
    Student selectById(Integer id);
    int insert(Student student);
    int update(Student student);
    int delete(Integer id);
}